package com.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration
public class HttpClientConfig {

    /**
     * 使用WebFlux创建WebClient Bean
     * @return WebClient
     */
    @Bean
    public WebClient webClient() {
        return WebClient.create();
    }
}
